//
//  UIAlertView+AlertUtils.m
//  SmartRebate
//
//  Created by Yuan on 13-2-28.
//  Copyright (c) 2013年 unionpaysmart.com. All rights reserved.
//

#import "UIAlertView+AlertUtils.h"

@implementation UIAlertView (UIAlertView_AlertUtils)

+(void)showAlertTitle:(NSString*)title message:(NSString *)msg
{
    UIAlertView *alert = [[UIAlertView alloc]initWithTitle:title message:msg delegate:nil cancelButtonTitle:HYLocalizedString(@"确定") otherButtonTitles:nil, nil];
    [alert show];
}

+(void)showAlertTitle:(NSString*)title message:(NSString *)msg delegate:(id)d
{
    UIAlertView *alert = [[UIAlertView alloc]initWithTitle:title message:msg delegate:nil cancelButtonTitle:HYLocalizedString(@"确定") otherButtonTitles:nil, nil];
    alert.delegate = d;
    [alert show];
}

+(void)showAlertTitle:(NSString*)msg
{
    UIAlertView *alert = [[UIAlertView alloc]initWithTitle:msg message:nil delegate:nil cancelButtonTitle:HYLocalizedString(@"确定") otherButtonTitles:nil, nil];
    [alert show];
}

+(void)showAlertTitle:(NSString*)msg delegate:(id)d
{
    UIAlertView *alert = [[UIAlertView alloc]initWithTitle:msg message:nil delegate:nil cancelButtonTitle:HYLocalizedString(@"确定") otherButtonTitles:nil, nil];
    alert.delegate = d;
    [alert show];
}

@end
